package com.dmap.knowledge.service;

import com.dmap.knowledge.controller.api.param.ArticleColumnAppEditParam;
import com.dmap.knowledge.controller.api.param.ArticleColumnAppParam;
import com.dmap.knowledge.po.ArticleColumnApp;

import java.util.List;

public interface ArticleColumnAppService {
    /**
     * 筛选所有的appColumn
     * @return
     */
    public List<ArticleColumnApp> selectArticleColumnAppAll(String projectId);
    
    /**
     * insertArticle_Column_App
     * @param param
     * @return
     */
    public int insertArticleColumnApp(ArticleColumnAppParam param);
    
    /**
     * 删除
     * @param articleColumnAppId
     * @return
     */
    public int deleteArticleColumnApp(long articleColumnAppId);
    
    /**
     * 批量删除
     * @param articleCOlumnAppIds
     * @return
     */
    public int deleteArticleColumnAppList(String articleCOlumnAppIds);
    /**
     * 更新
     * @param articleColumnAppEditParam
     * @return
     */
    public int updateArticleColumnApp(ArticleColumnAppEditParam articleColumnAppEditParam);
    
    /**
     * 根据语言projectId筛选
     * @param lang
     * @param projectId
     * @return
     */
    public List<ArticleColumnApp> selectAppArticleColumnAppAll(String lang,String projectId);
    
    /**
     * 是否启用
     */
    public int  countStatusColumnApp(String lang,String appNumber,long columnId);
    /**
     * 没有启用的ColumnApp
     */
    public List<ArticleColumnApp>  selectColumnAppNotOn(String lang,String appNumber,long columnId);

}
